package bandi.osgi.dalservice.service.impl;

import bandi.osgi.dal.dao.devices.DeviceDAO;
import bandi.osgi.dal.dao.devicetypes.DeviceTypeDAO;
import bandi.osgi.dal.dao.users.UsersDAO;
import bandi.osgi.dalservice.service.DALService;
import bandi.osgi.dalservice.service.devices.DeviceService;
import bandi.osgi.dalservice.service.devices.impl.DeviceServiceImpl;
import bandi.osgi.dalservice.service.devicetypes.DeviceTypeService;
import bandi.osgi.dalservice.service.devicetypes.impl.DeviceTypeServiceImpl;
import bandi.osgi.dalservice.service.users.UsersService;
import bandi.osgi.dalservice.service.users.impl.UsersServiceImpl;

public class DALServiceImpl implements DALService {
	private DeviceService ds;
	private DeviceTypeService dts;
	private UsersService us;

	public DALServiceImpl(DeviceDAO deviceDAO, DeviceTypeDAO deviceTypeDAO,
			UsersDAO usersDAO) {
		super();
		ds = new DeviceServiceImpl(deviceDAO, deviceTypeDAO, usersDAO);
		dts = new DeviceTypeServiceImpl(deviceTypeDAO, deviceDAO);
		us = new UsersServiceImpl(usersDAO, deviceDAO);
	}

	public DALServiceImpl() {
		super();
	}

	@Override
	public DeviceService getDeviceService() {
		return ds;
	}

	@Override
	public DeviceTypeService getDeviceTypeService() {
		return dts;
	}

	@Override
	public UsersService getUserService() {
		return us;
	}

}
